From d4a37a51afb971fcfa30253ace0dbd854c275e50 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Sun, 30 Oct 2005 13:52:38 +0100 Subject: [PATCH] Don't schedule work for reboot if work is already scheduled. This fixes a problem whereby migrated domains would shut themselves down immediately, because the watch from the removal of the control/shutdown node would fire after the workqueue had started, but before the domain was suspended, meaning that an additional piece of work was scheduled, which ran immediately after the domain was resumed. Signed-off-by: Ewan Mellor --- linux-2.6-xen-sparse/arch/xen/kernel/reboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c index a8f42dc3e7..fbac789592 100644 --- a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c +++ b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c @@ -283,7 +283,7 @@ static void shutdown_handler(struct xenbus_watch *watch, int err; if (shutting_down != SHUTDOWN_INVALID) - goto out; + return; again: xbt = xenbus_transaction_start(); -- 2.30.2